package com.html2rss.core;

import org.hibernate.classic.Session;
import org.hibernate.Transaction;

import java.io.Serializable;

/**
 * User: vvs
 * Date: 14.04.2007
 * Time: 14:33:00
 */
public class TestHibernate {
    public static void main(String[] args) {
        Session session = HibernateUtil.getSessionFactory().openSession();
        Transaction transaction = session.beginTransaction();
        transaction.begin();
        Serializable id =  session.save(new Object());
        transaction.commit();
        System.out.println("id = " + id);
    }
}
